package com.sl.au.entity;
//游客举报获得奖励的实体

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.sl.au.entity.EventRegister;
import com.sl.au.entity.Root;
import com.sl.au.entity.User;

@Entity
@Table(name = "sl_wcsi_visitor_reward")
public class VisitorReward extends Root {
	@ManyToOne
	@JoinColumn(name = "userId")
	private User user;// 游客
	@ManyToOne
	@JoinColumn(name = "registerId")
	private EventRegister register;// 内部事件
	
	@ManyToOne
	@JoinColumn(name = "eventTypeId")
	private EventType EventType;// 奖励事件类型

	@ManyToOne
	@JoinColumn(name = "gridAreaId")
	private GridAreaInfo gridArea;// 事件发生网格

	private double rewardValue;

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public EventRegister getRegister() {
		return register;
	}

	public void setRegister(EventRegister register) {
		this.register = register;
	}

	public double getRewardValue() {
		return rewardValue;
	}

	public void setRewardValue(double rewardValue) {
		this.rewardValue = rewardValue;
	}

	public EventType getEventType() {
		return EventType;
	}

	public void setEventType(EventType eventType) {
		EventType = eventType;
	}

	public GridAreaInfo getGridArea() {
		return gridArea;
	}

	public void setGridArea(GridAreaInfo gridArea) {
		this.gridArea = gridArea;
	}

}
